package entity;

import java.util.Date;


public class Plans {

	int planId;
	int userId;
	String title;
	Date beginTime;
	int endDays;
	String motivation;
	int icon;
	int status;
	public Plans() {
		
	}
	public Plans(int userId, String title,
			int endDays, String motivation, int icon, int status) {
		
		this.userId = userId;
		this.title = title;
		this.endDays = endDays;
		this.motivation = motivation;
		this.icon = icon;
		this.status = status;
	}
	public Plans(int planId, int userId, String title, Date beginTime,
			int endDays, String motivation, int icon, int status) {
		this.planId = planId;
		this.userId = userId;
		this.title = title;
		this.beginTime = beginTime;
		this.endDays = endDays;
		this.motivation = motivation;
		this.icon = icon;
		this.status = status;
	}
	
	public Plans(int userId, String title, int endDays, String motivation,
			int icon) {
		
		this.userId = userId;
		this.title = title;
		this.endDays = endDays;
		this.motivation = motivation;
		this.icon = icon;
	}
	@Override
	public String toString() {
		return "Plans [planId=" + planId + ", userId=" + userId + ", title="
				+ title + ", beginTime=" + beginTime + ", endDays=" + endDays
				+ ", motivation=" + motivation + ", icon=" + icon + ", status="
				+ status + "]";
	}
	public int getPlanId() {
		return planId;
	}
	public void setPlanId(int planId) {
		this.planId = planId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	public int getEndDays() {
		return endDays;
	}
	public void setEndDays(int endDays) {
		this.endDays = endDays;
	}
	public String getMotivation() {
		return motivation;
	}
	public void setMotivation(String motivation) {
		this.motivation = motivation;
	}
	public int getIcon() {
		return icon;
	}
	public void setIcon(int icon) {
		this.icon = icon;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	
	
}
